<template>
    <div class="home">
        <img alt="Vue logo" src="../assets/logo.png"/>
        <el-button type="success" v-on:click="goAbout">去about</el-button>
    </div>
</template>

<script>
    // @ is an alias to /src


    export default {
        name: "Home",
        data() {
            return {
                list: [],
                query: {
                    pageNum: 1,
                    pageSize: 10,
                    searchType: ''
                }
            }
        },

        mounted() {
            this.getList();
        },
        methods: {
            getList() {
                this.$get("/getAnli", this.query).then((res) => {
                    console.log(res)

                }).catch((data) => {
                    this.$message.error(`系统错误： ${data.message}`);
                })
            },
            goAbout() {
                this.$router.push("/about")
            }
        }
    };
</script>
